package com.flycent.hqhs.bean;

import java.util.List;

/**
 * @author fbl
 * 套餐
 */
public class CartItemBundle {
	/**  */
	private long id;
	/** 名称 */
	private String name;
	/** 套餐价格 */
	private float price;
	/** 套餐原价 */
	private float marketPrice;
	/** 主商品 */
	private Product primaryProduct;
	/** 商品列表 */
	private List<Product> products;
	
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public float getMarketPrice() {
		return marketPrice;
	}

	public void setMarketPrice(float marketPrice) {
		this.marketPrice = marketPrice;
	}

	public Product getPrimaryProduct() {
		return primaryProduct;
	}

	public void setPrimaryProduct(Product primaryProduct) {
		this.primaryProduct = primaryProduct;
	}

	public List<Product> getProducts() {
		return products;
	}

	public void setProducts(List<Product> products) {
		this.products = products;
	}

	public CartItemBundle(long id, String name, float price, float marketPrice,
			Product primaryProduct, List<Product> products) {
		super();
		this.id = id;
		this.name = name;
		this.price = price;
		this.marketPrice = marketPrice;
		this.primaryProduct = primaryProduct;
		this.products = products;
	}

	public CartItemBundle() {
		super();
	}

	@Override
	public String toString() {
		return "CartItemBundle [id=" + id + ", name=" + name + ", price="
				+ price + ", marketPrice=" + marketPrice + ", primaryProduct="
				+ primaryProduct + ", products=" + products + "]";
	}
	

}
